package person.wang.util.encryption;//package person.wang.util;
//
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.support.ClassPathXmlApplicationContext;
//import person.wang.pojo.Employee;
//import person.wang.pojo.Result;
//import person.wang.pojo.User;
//import person.wang.service.LoginService;
//import person.wang.service.UserService;
//
//public class Test {
//    public static void main(String[] args) {
//
////        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("/config/springmvc-servlet.xml");
////        LoginService loginService = (LoginService)applicationContext.getBean("loginService");
////        User user = (User) applicationContext.getBean("user");
////        String password="123";
////        password = MD5Utils.MD5Encode(password, "utf-8", 10, false);
////        user.setUsername("admin");
////        user.setPassword(password);
////        loginService.login(user);
//        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("/config/springmvc-servlet.xml");
//        UserService userService = (UserService)applicationContext.getBean("userService");
//        Employee employee = (Employee) applicationContext.getBean("employee");
//        employee.setName("张");
//        employee.setPage("0");
//        Result show = userService.show(employee);
//    }
//}
